package com.ark.cloud.javacallnative.modules.storage.service.impl;

import com.ark.cloud.javacallnative.entity.FireJGCmd;
import com.ark.cloud.javacallnative.modules.storage.mapper.FireJGCmdMapper;
import com.ark.cloud.javacallnative.modules.storage.service.FireJGCmdService;
import com.ark.cloud.javacallnative.util.UUIDUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FireJGCmdServiceImpl extends ServiceImpl<FireJGCmdMapper, FireJGCmd> implements FireJGCmdService {

    @Autowired
    private FireJGCmdMapper fireJGCmdMapper;


    @Override
    public void saveFireJGCmd(FireJGCmd fireJGCmd) {

        fireJGCmd.setId(UUIDUtil.next());
        System.out.println("fireJGCmd:"+fireJGCmd);
        fireJGCmdMapper.insert(fireJGCmd);

    }
}
